package com.ruoyi.project.system.service.impl;

import java.util.List;

import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.SysInformationMapper;
import com.ruoyi.project.system.domain.SysInformation;
import com.ruoyi.project.system.service.ISysInformationService;

/**
 * 平台信息Service业务层处理
 * 
 * @author jjp
 * @date 2020-04-15
 */
@Service
public class SysInformationServiceImpl implements ISysInformationService 
{
    @Autowired
    private SysInformationMapper sysInformationMapper;

    /**
     * 查询平台信息
     * 
     * @param informationId 平台信息ID
     * @return 平台信息
     */
    @Override
    public SysInformation selectSysInformationById(Long informationId)
    {
        return sysInformationMapper.selectSysInformationById(informationId);
    }

    /**
     * 查询平台信息列表
     * 
     * @param sysInformation 平台信息
     * @return 平台信息
     */
    @Override
    public List<SysInformation> selectSysInformationList(SysInformation sysInformation)
    {
        return sysInformationMapper.selectSysInformationList(sysInformation);
    }

    /**
     * 新增平台信息
     * 
     * @param sysInformation 平台信息
     * @return 结果
     */
    @Override
    public int insertSysInformation(SysInformation sysInformation)
    {
        sysInformation.setCreateTime(DateUtils.getNowDate());
        return sysInformationMapper.insertSysInformation(sysInformation);
    }

    /**
     * 修改平台信息
     * @param sysInformation 平台信息
     * @return 结果
     */
    @Override
    public int updateSysInformation(SysInformation sysInformation)
    {
        return sysInformationMapper.updateSysInformation(sysInformation);
    }

    /**
     * 批量删除平台信息
     * 
     * @param informationIds 需要删除的平台信息ID
     * @return 结果
     */
    @Override
    public int deleteSysInformationByIds(Long[] informationIds)
    {
        return sysInformationMapper.deleteSysInformationByIds(informationIds);
    }

    /**
     * 删除平台信息信息
     * 
     * @param informationId 平台信息ID
     * @return 结果
     */
    @Override
    public int deleteSysInformationById(Long informationId)
    {
        return sysInformationMapper.deleteSysInformationById(informationId);
    }

    @Override
    public List<SysInformation> queryInformation(SysInformation sysInformation) {
        return sysInformationMapper.queryInformation(sysInformation);
    }
}
